package io.github.luons.mediator.core.utils;

import io.github.luons.mediator.core.factory.http.AbsHttpClientFactory;
import io.github.luons.mediator.core.factory.http.AbsHttpClient;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

import java.net.URI;
import java.util.List;
import java.util.Map;

@Slf4j
@Setter
@Getter
public class ApiHttpClient extends AbsHttpClient {

    private Map<String, Object> headers;

    public static final String AUTHORIZATION = "Authorization";

    protected ApiHttpClient(AbsHttpClientFactory factory, URI baseUrl) {
        super(factory, baseUrl);
    }

    public ApiHttpClient(AbsHttpClientFactory factory, URI baseUrl, Map<String, Object> headers) {
        super(factory, baseUrl);
        this.headers = headers;
    }

    public List<Map<String, Object>> getData(String paths) throws Exception {
        return null;
    }

    public List<Map<String, Object>> postJson(String sqlQry) throws Exception {
        return null;
    }


}
